/*    */ package com.zimbra.cs.dav.service.method;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.dav.DavContext;
/*    */ import com.zimbra.cs.dav.DavException;
/*    */ import com.zimbra.cs.dav.resource.DavResource;
/*    */ import com.zimbra.cs.dav.service.DavMethod;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Post
/*    */   extends DavMethod
/*    */ {
/*    */   public static final String POST = "POST";
/*    */   
/* 32 */   public String getName() { return "POST"; }
/*    */   
/*    */   public void handle(DavContext ctxt) throws DavException, IOException, ServiceException {
/* 35 */     String user = ctxt.getUser();
/* 36 */     String name = ctxt.getItem();
/*    */     
/* 38 */     if ((user == null) || (name == null)) {
/* 39 */       throw new DavException("invalid uri", 404);
/*    */     }
/* 41 */     DavResource rs = ctxt.getRequestedResource();
/* 42 */     rs.handlePost(ctxt);
/* 43 */     sendResponse(ctxt);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/dav/service/method/Post.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */